﻿<%@ Page Title="" Language="C#" MasterPageFile="~/DeveloperSite.Master" AutoEventWireup="true" CodeBehind="AddCPDOutput.aspx.cs" Inherits="UNDP_Projects.CO.Edit.AddCPDOutput" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <asp:EntityDataSource ID="EntityDataSource1" runat="server" 
        ConnectionString="name=UNDPEntities" DefaultContainerName="UNDPEntities" 
        EnableFlattening="False" EntitySetName="sub_outcomes" 
        Select="it.[sub_outcome_id]">
    </asp:EntityDataSource>

    <asp:Label ID="error" runat="server" Visible="false"></asp:Label>
    <br />
    <asp:Label ID="Label3" runat="server" Text="ADD CPD OUTPUT" CssClass="ContentHead"></asp:Label>
    <br />
    
    <asp:Table ID="Table1" runat="server">
        <asp:TableRow>
            <asp:TableCell style="padding-top:2em;">
                <asp:Label ID="Label4" runat="server" Text="Sub Outcome"></asp:Label>
            </asp:TableCell>
            <asp:TableCell style="padding-top:2em;">
                <asp:DropDownList ID="SubOutComeList" runat="server" 
                    DataSourceID="EntityDataSource1" DataTextField="sub_outcome_id" 
                    DataValueField="sub_outcome_id">
                </asp:DropDownList>
            </asp:TableCell>
        </asp:TableRow>
        <asp:TableRow>
            <asp:TableCell style="padding-top:1em; padding-right:5px;">
                <asp:Label ID="Label2" runat="server" Text="CPD Output ID"></asp:Label>
                <br />
            </asp:TableCell>
            <asp:TableCell style="padding-top:1em;">
                <asp:TextBox ID="CPDOutputIDTextBox" runat="server"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                ErrorMessage="*" ForeColor="Red" ControlToValidate="CPDOutputIDTextBox"></asp:RequiredFieldValidator>
            </asp:TableCell>
        </asp:TableRow>
        <asp:TableRow>
            <asp:TableCell style="padding-top:1em;">
                <asp:Label ID="Label1" runat="server" Text="CPD Output"></asp:Label>
                <br />
            </asp:TableCell>
            <asp:TableCell style="padding-top:1em;">
                <asp:TextBox ID="CPDOutputTextBox" runat="server" Width="58em" Height="3em" TextMode="MultiLine" 
                        CssClass="MText"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                    ErrorMessage="*" ForeColor="Red" ControlToValidate="CPDOutputTextBox"></asp:RequiredFieldValidator>
            </asp:TableCell>
        </asp:TableRow>
        <asp:TableRow>
            <asp:TableCell></asp:TableCell>
            <asp:TableCell>
                <br />
                <div style="float:left;">
                    <asp:Button ID="SaveButton" runat="server" Text="Save" 
                        OnClick="SaveButton_Click" />
                </div>
                <div style="float:right;">
                    <asp:Button ID="CancelButton" runat="server" Text="Cancel" CausesValidation="false"
                         OnClick="CancelButton_Click" />
                </div>
            </asp:TableCell>
        </asp:TableRow>
    </asp:Table>

</asp:Content>
